package com.icode.core.model.manage;

import com.icode.core.model.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created with IntelliJ IDEA.
 * User: xianfei
 * Date: 15-9-2
 * Time: 上午9:59
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "message_model")
public class MessageModel extends AbstractEntity {

    private String name;
    private String value;

    public MessageModel() {
    }

    public void initMessageModel(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public MessageModel(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String value() {
        return value;
    }

    public String name() {
        return name;
    }
}
